import { request } from "./request";


// 订单列表
export function orderPageList(data){
    return request({
        url: "/member/app/order/getList",
        method: "get",
		data
    })
};
// 订单详情
export function orderDetail(data){
    return request({
        url: "/member/app/order/getInfo",
        method: "get",
		data
    })
};
// 获取默认地址
export function defaultAddress(){
    return request({
        url: "/member/app/user/defaultAddress",
        method: "get"
    })
};
// 创建订单
export function createOrder(data){
    return request({
        url: "/member/app/order/create",
        method: "post",
		data
    })
};
// 支付
export function orderPay(data){
    return request({
        url: "/member/app/order/pay",
        method: "post",
		data
    })
};

// 修改订单状态
export function changeStatus(data){
    return request({
        url: "/member/app/order/changeStatus",
        method: "post",
		data
    })
};
// 删除订单
export function deleteById(data){
    return request({
        url: "/member/app/order/deleteById",
        method: "post",
		data
    })
};

// 修改订单状态
export function orderSure(data){
    return request({
        url: "/member/app/order/sure",
        method: "post",
		data
    })
};
// 常购清单
export function quickList(data){
    return request({
        url: "/member/app/product/quick",
        method: "post",
		data
    })
};